package com.xiaoh.dormitoryrepairreportbackend.model.dto.workorder;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 工单创建请求
 */
@Data
@Schema(description = "工单创建请求")
public class WorkOrderAddRequest implements Serializable {

    @Schema(description = "报修类别ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "报修类别不能为空")
    private Integer categoryId;

    @Schema(description = "工单标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "工单标题不能为空")
    private String title;

    @Schema(description = "问题描述")
    private String description;

    @Schema(description = "报修地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "报修地址不能为空")
    private String location;

    @Schema(description = "图片凭证URL列表")
    private List<String> imagesUrl;

    private static final long serialVersionUID = 1L;
}
